package com.it.VO;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

public class MessageCommentOV {

    private Integer id;

    private Integer parentId;

    private Integer rootId;

    private String content;

    private Integer userId;

    private Byte isDelete;

    private String username;

    private String image;

    private Integer toCommentUserId;

    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date time;

    private String toCommentUSerName;

    public String getToCommentUSerName() {
        return toCommentUSerName;
    }

    public void setToCommentUSerName(String toCommentUSerName) {
        this.toCommentUSerName = toCommentUSerName;
    }

    private List<MessageCommentOV> children;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getRootId() {
        return rootId;
    }

    public void setRootId(Integer rootId) {
        this.rootId = rootId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Byte getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Byte isDelete) {
        this.isDelete = isDelete;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public List<MessageCommentOV> getChildren() {
        return children;
    }

    public void setChildren(List<MessageCommentOV> children) {
        this.children = children;
    }

    public Integer getToCommentUserId() {
        return toCommentUserId;
    }

    public void setToCommentUserId(Integer toCommentUserId) {
        this.toCommentUserId = toCommentUserId;
    }
}
